<?php


$testForm = $application->createComponent( "javax.faces.HtmlForm" );
$testForm->setId( "form1" );
$testForm->setParent( $viewRoot );
$viewRoot->getChildren()->add( $testForm );


$c = $application->createComponent( "javax.faces.HtmlInputText" );
$c->setValue("hello, phpfaces 1!");
$c->setId( "text1" );
$c->setParent( $testForm );
$testForm->getChildren()->add( $c );


$c = $application->createComponent( "javax.faces.HtmlInputText" );
$c->setValue("hello, phpfaces 2!");
$c->setId( "text2" );
$c->setParent( $testForm );
$testForm->getChildren()->add( $c );


$c = $application->createComponent( "javax.faces.HtmlCommandButton" );
$c->setValue("hello, phpfaces!");
$c->setAction("#{test}");
$c->setId( "command1" );
$c->setParent( $testForm );
$testForm->getChildren()->add( $c );



?>